package Book;

/**
 * Created with Interllij IDEA.
 * Descriptiption:
 * User: 王澄慧
 * Date: 2022-04-16
 * Time: 19:00
 */
public class Booklist {
    private Book[] books= new Book[10];
    private int userSize;
    public Booklist(){
        books [0] = new Book("三国演义","罗贯中","小说",34);
        books [1] = new Book("红楼梦","曹雪芹","小说",45);
        books [2] = new Book("西游记","吴承恩","小说",55);
        this.userSize = 3;
    }


    public int getUserSize() {
        return userSize;
    }

    public void setUserSize(int userSize) {
        userSize = userSize;
    }
    public Book getpos(int pos ){
        return books[pos];
    } //获取一本书的地址
    public void setBooks(int pos,Book book){
        books[pos] = book;
    } //放置一本书
}
